
<html>
<base href="<?php echo base_url();?>">
<head>
<script type="text/javascript" src="<?php echo base_url();?>ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>ueditor/ueditor.all.min.js"></script>
<link rel="stylesheet" href="<?php echo base_url();?>themes/default/css/ueditor.css"/> 
</head>
<body>

<form height=500px width="700px" action="<?php echo site_url('admin/checkaddarticle');?>" method="post">
	<table border="1" style="margin:0 auto;width:70%;">
		<caption style="height:30px;line-height:30px;"><font color="#AE39B"><b style="font-size:16px;">添加文章</b></font></caption>	
		<input type="hidden" name="cid" value="<?php echo $cid?>"/><!--传一个cid参数区别是哪一个类别的文章-->
		<tr>
			<td width="15%">文章标题：</td>
			<td width="85%"><input type="text" name="title" style="width:90%"> </td>
		</tr>
		<tr>
			<td>文章作者：</td>
			<td><input type="text" name="author" style="width:270px;"/></td>
		</tr>
                <!--
                <tr>
			<td>文章来源：</td>
			<td><input type="text" name="source" style="width:270px;"/></td>
		</tr>	
                -->
             
	
		<tr>
			<td>置顶：</td>
			<td>
				<input type="radio" name="settop" value="1"/>置顶
				<input type="radio" name="settop" value="0" checked/>不置顶
			</td>
		</tr>	
		<tr>
			<td>发表时间：</td>
			<td><input type="text" name="time" style="width:270px;" value="<?php echo date("Y-m-d");?>"/></td>
		</tr>	
		<tr>
			<td colspan='2'style="text-align:center;">
				<script style="height:530px;width:800px;" id="editor" type="text/plain" name="content" >


                </script>
				
					<!--
				<div style="width: 100%; align:center;">
					<script style="height:440px;" id="editor" type="text/plain" name="myContent"></script>
				</div>
					-->
				
			</td>
		</tr>
		<tr>
			<td colspan='2' style="text-align:center;">
				<input type="submit" name="submit" value="确定" />
				<font color=red>（注：发表图片新闻时一定要添加图片哦）</font>
			</td>
		</tr>		
	</table>
</form>	


<!--<textarea cols="100" rows="30" name="content1">-->
<!--<div id="name" style="border:solid red 1px; width:600px ;height:550px;" >-->


   </body>
<script type="text/javascript">
	var ue=UE.getEditor('editor');<!--和<script>里面的id保持一致 -->
 </script>

</html>